package ru.space.academy.exception;

public class EntityNotFoundException extends RuntimeException {

    private final Long entityId;

    public EntityNotFoundException(Long id) {
        this.entityId = id;
    }

    public EntityNotFoundException(String message, Long entityId) {
        super(message);
        this.entityId = entityId;
    }

    public Long getEntityId() {
        return entityId;
    }
}
